import { request } from './request.js';
//获取病例树
export const getPatientList = (params) => {
  return request({
    url: '/Maintain/SelectPatient/btn-usrsearch',
    method: 'get',
    params,
  });
};
//获取病历基本数据
export const getformHistory1List = (params) => {
  return request({
    url: '/Maintain/getformHistory1List',
    method: 'get',
    params,
  });
};
export const getbodyInForm1List = (params) => {
  return request({
    url: '/Maintain/getbodyInForm1List',
    method: 'get',
    params,
  });
};
export const getvitalSignsForm1List = (params) => {
  return request({
    url: '/Maintain/getvitalSignsForm1List',
    method: 'get',
    params,
  });
};
export const getdisposalForm1List = (params) => {
  return request({
    url: '/Maintain/getdisposalForm1List',
    method: 'get',
    params,
  });
};
//辅助检查
export const getauxiliaryForm1List = (params) => {
  return request({
    url: '/Maintain/getauxiliaryForm1List',
    method: 'get',
    params,
  });
};
export const getSymptomForm1List = (params) => {
  return request({
    url: '/Maintain/getSymptomForm1List',
    method: 'get',
    params,
  });
};
export const getwhereForm1List = (params) => {
  return request({
    url: '/Maintain/getwhereForm1List',
    method: 'get',
    params,
  });
};
export const getBasicPatientList = (params) => {
  return request({
    url: '/Maintain/SelectBasicPatient',
    method: 'get',
    params,
  });
};
export const getDiagnosisForm1List = (params) => {
  return request({
    url: '/Maintain/getDiagnosisForm1List',
    method: 'get',
    params,
  });
};
//修改patient
//修改
export const editPatientRecord = (data) => {
  return request({
    url: 'Maintain/UpdatePatientRecord/btn-patientrecordupdate',
    method: 'post',
    data,
  });
};
//删除patient
//删除
export const deletePatientRecord = (params) => {
  return request({
    url: 'Maintain/DeletePatientRecord/btn-patientrecorddelete',
    method: 'get',
    params,
  });
};
